import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

import { AComponent } from './routerdemo/acomponent/a.component';
import { BComponent } from './routerdemo/bcomponent/b.component';

import { routes } from './routerdemo/r.routes';
import { RouterModule } from '@angular/router';
import { CComponent } from './routerdemo/ccomponent/c.component';
import {OneFormComponent} from './formsdemo/one.component';
import { Outlet } from './routerdemo/outlet/outlet.component';

@NgModule({
  declarations: [
    Outlet,
    AppComponent,
    AComponent,
    BComponent,
    CComponent,
    OneFormComponent
  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot(routes, {enableTracing:true}) // 加载路由表
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
